package com.pmcc.platform.giftGoods.entity;

import com.pmcc.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.List;

/**
 * 商品
 */
@Getter
@Setter
@Entity
@Table(name = "bp_goods")
@org.hibernate.annotations.Table(appliesTo = "bp_goods", comment = "商品")
public class Goods extends BaseEntity {

    @Column(columnDefinition = "varchar(100) COMMENT '名称'")
    private String name;//名称


    @Column(columnDefinition = "varchar(8) COMMENT '系统编码'")
    private String sysCode;//系统编码

    @Column(columnDefinition = "varchar(50) COMMENT '规格'")
    private String specification;


    @Column(columnDefinition = "decimal(11) default 0 COMMENT '排序'")
    private Integer sortNo;

    @Column(columnDefinition = "decimal(14,2) default 0 COMMENT '售价'")
    private BigDecimal price;// 价格


    @Column(columnDefinition = "decimal(14,2) default 0 COMMENT '赠品门槛'")
    private BigDecimal threshold;// 赠品门槛


    @Column(columnDefinition = "varchar(100) COMMENT '图片'")
    private String images;// 图片

    @Column(columnDefinition = "varchar(100)  COMMENT '备注'")
    private String remark;// 图片


    @Transient
    private List<String> goodsDetailImage;


    @Transient
    private List<String> goodsImages;

    @Transient
    private  int sendNum;

    @Transient
    private  int  totalNums;


}
